package com.hp.docker_base.mapper;

import com.hp.docker_base.bean.StomachRule;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

@Mapper
@Repository
public interface StomachMapper {

    void InsertRule(@Param("stomachRules") ArrayList<StomachRule> stomachRules);

    ArrayList<StomachRule> getAllData();

    void updateRule(@Param("stomachRule") StomachRule stomachRule);

    void InsertSingleRule(@Param("stomachRule") StomachRule stomachRule);

    void addSelf(@Param("id") int id);

    void deleteRule(@Param("id") int id);

}
